package aiowang.springframe.mybatisspring.dao;

import aiowang.springframe.mybatis.pojo.User;
import aiowang.springframe.mybatisspring.mapper.UserMapper;
import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.List;

/**
 * @author aiowang
 * @description:
 * @date 2021/8/17 13:36
 */
public class UserDaoImpl2 extends SqlSessionDaoSupport implements UserMapper {
    @Override
    public List<User> selectUser() {
        UserMapper mapper = getSqlSession().getMapper(UserMapper.class);
        return mapper.selectUser();
    }
}
